import request from "@/utils/request";
//通过关键词搜索
export function listSingerByKeyWord(keyword) {
  return request({
    url: "/singer/singer/listSingerByKeyWord/" + keyword,
    method: "get",
  });
}

// 查询歌手基础信息列表
export function listSinger(query) {
  return request({
    url: "/singer/singer/list",
    method: "get",
    params: query,
  });
}

// 查询歌手基础信息详细
export function getSinger(singerId) {
  return request({
    url: "/singer/singer/" + singerId,
    method: "get",
  });
}

// 新增歌手基础信息
export function addSinger(data) {
  return request({
    url: "/singer/singer",
    method: "post",
    data: data,
  });
}

// 修改歌手基础信息
export function updateSinger(data) {
  return request({
    url: "/singer/singer",
    method: "put",
    data: data,
  });
}

// 删除歌手基础信息
export function delSinger(singerId) {
  return request({
    url: "/singer/singer/" + singerId,
    method: "delete",
  });
}
